home *** CD-ROM | disk | FTP | other *** search
- Path: news1.h1.usa.pipeline.com!usenet
- From: grantp@usa.pipeline.com
- Newsgroups: comp.lang.c++
- Subject: Re: Using Delphi's dll in vc++
- Date: 9 Jan 1996 15:58:17 GMT
- Organization: Pipeline USA
- Message-ID: <4cu3ap$9s1@news1.usa.pipeline.com>
- NNTP-Posting-Host: pipe5.h1.usa.pipeline.com
- X-PipeUser: grantp
- X-PipeHub: usa.pipeline.com
- X-PipeGCOS: (Pete)
- X-Newsreader: Pipeline USA v3.3.0
-
- On Jan 09, 1996 12:06:45 in article <Using Delphi's dll in vc++>,
- 'tywang@csie.nctu.edu.tw (Hope-Wonderland)' wrote:
-
-
- >
- > Hi,
- > Can someone help me ?? I have a .dll file, and use
- > implib.exe to generate a .lib file. Then, I use the .lib
- > in MSVC 2.0 to build my own application, but linker said
- > that .lib is invalid or corrupted... why??? I have tried
- > several times..... Could someone help me ??
- >
- This is a 16-bit library vs. 32-bit caller problem. You can't link the
- import library to your program. To call 16-bit DLL functions from
- a 32- bit module, you need to read up on thunks. The thunking
- mechanism is different for NT, Win95, and Win32S so it's not
- portable.
-
- --
-
- Pete
-